package com.jt.demo.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class User {
	private Integer id;
	private String name;
	private Integer age;
	private String sex;

//	public User setId(Integer id){
//		this.id=id;
//		return this;
//	}
	public void addUser(){
		User user = new User();
		user.setId(1111)
		.setName("tomcat")
		.setAge(18)
		.setSex("男");
	}

}
